<?
        require_once('../inc/Users.php');
        $results = GetCustomers();
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Database Access</title>
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
    
    <body>
        
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">
                <table class="table table-striped table-bordered table-condensed table-hover">
                    <tr>
                        <th>First Name</th>
                        <th>Last Name</th>				       			
                  		<th>Actions</th>
                    </tr>
                    <? while($rs = $results->fetch_assoc()): ?>
                        <tr>
                            <td><?=$rs['FirstName']?></td>
                            <td><?=$rs['LastName']?></td>
                            <td>
                                <a href="details.php?id=<?=$rs['id']?>">Details</a>
                                <a href="edit.php?id=<?=$rs['id']?>">Edit</a>
                                <a href="delete.php?id=<?=$rs['id']?>">Delete</a>
                            </td>
                        </tr>
                    <? endwhile; ?>
                </table>
            </div>
        </div>
    </body>
</html>